﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
using System.Web;
using System.Runtime.InteropServices;
using BlueLotus7.WeiboApiLibrary.Weibo;
using BlueLotus7.WeiboApiLibrary.Weibo.Contracts;

namespace BlueLotus7.WeiboApiLibrary
{
    public class RuntimeAnalyseUtil
    {
        protected WeiboContentRetriever contentRetriever = null;
        protected Dictionary<Guid, List<WeiboUser>> userContainer = new Dictionary<Guid, List<WeiboUser>>();
        protected Dictionary<Guid, List<WeiboArticle>> articleContainer = new Dictionary<Guid, List<WeiboArticle>>();

        public RuntimeAnalyseUtil(string loginUserName, string loginPassword)
        {
            contentRetriever = new WeiboContentRetriever(loginUserName, loginPassword);
        }

        public List<WeiboUser> GetFollowsById(long userId)
        {
            List<WeiboUser> result = null;
            string url = UrlGenerator.GenerateWeiboFollowListUrl(userId);

            return result;
        }

        public List<WeiboUser> GetFansById(long userId)
        {
            List<WeiboUser> result = null;
            string url = UrlGenerator.GenerateWeiboFollowListUrl(userId);

            return result;
        }

        #region User Operations

        public List<WeiboUser> FindInBothLeftAndRight(List<WeiboUser> left, List<WeiboUser> right)
        {
            List<WeiboUser> result = new List<WeiboUser>();



            return result;
        }

        //public WeiboUser GetUserInfoByName(string userName)
        //{
        //}

        //public WeiboUser GetUserInfoByUrl(string url)
        //{
        //}

        #endregion
    }
}
